//
//  SYLBulletView.h
//  弹幕的显示容器~
//
//  Created by Yue Shen on 16/9/7.
//  Copyright © 2016年 Yue Shen. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SYLBullet.h"
@interface SYLBulletView : UIView
- (void)receiveBullet:(NSAttributedString*)string andWithPositon:(BulletPosition)position;


/// 接收数据
/// @param bullet bullet description
- (void)receiveBullet:(SYLBullet *)bullet;

/*
 SYLBullet *bullet = [SYLBullet new];
 bullet.positon = position;
 bullet.attributedText = string;
 */

@end


/*
 SYLBulletView *bulletView = [[SYLBulletView alloc]initWithFrame:self.view.bounds];
 [self.view addSubview:bulletView];
 NSLog(@"123");
 
 NSAttributedString *name = [[NSAttributedString alloc] initWithString:@"大家好事吗" attributes:@{NSForegroundColorAttributeName:[UIColor orangeColor], NSFontAttributeName:[UIFont systemFontOfSize:15 weight:UIFontWeightRegular]}];
 [bulletView receiveBullet:name andWithPositon:topRightToLeft];
 
 name = [[NSAttributedString alloc] initWithString:@"大家好事吗" attributes:@{NSForegroundColorAttributeName:[UIColor redColor], NSFontAttributeName:[UIFont systemFontOfSize:15 weight:UIFontWeightRegular]}];
 [bulletView receiveBullet:name andWithPositon:topRightToLeft];
 
 name = [[NSAttributedString alloc] initWithString:@"大家好事吗" attributes:@{NSForegroundColorAttributeName:[UIColor orangeColor], NSFontAttributeName:[UIFont systemFontOfSize:15 weight:UIFontWeightRegular]}];
 [bulletView receiveBullet:name andWithPositon:topRightToLeft];
 */
